<?php


namespace paper\exception;


class HttpException extends BaseException
{
    private $statusCode;
    private $headers;

    public function __construct($statusCode,string $message = '', \Exception $previous = null, array $headers = [])
    {
        $this->statusCode = $statusCode;
        $this->headers    = $headers;
        parent::__construct($message, $statusCode, $previous);
    }

    public function getStatusCode()
    {
        return $this->statusCode;
    }

    public function getHeaders(): array
    {
        return $this->headers;
    }


}